/*
 * @Description: 你的代码我的心
 * @Author: GGB
 * @Date: 2021-12-21 14:34:14
 * @LastEditors: GGB
 * @LastEditTime: 2022-01-25 11:21:20
 */
import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const store: AppRouteModule = {
  path: '/permission',
  name: 'Permission',
  component: LAYOUT,
  redirect: '/permission/menu',
  meta: {
    icon: 'ion:key-outline',
    title: t('routes.permission.permissionMenu'),
    orderNo: 6,
  },
  children: [
    {
      path: 'menu',
      name: 'MenuPage',
      component: () => import('/@/views/permission/menu/index.vue'),
      meta: {
        title: t('routes.permission.menu'),
        icon: 'ep:menu',
      },
    },
    {
      path: 'api',
      name: 'ApiPage',
      component: () => import('/@/views/permission/api/index.vue'),
      meta: {
        title: t('routes.permission.api'),
        icon: 'mdi:api',
      },
    },
  ],
};

export default store;
